package com.rimuru.test.controller;

import com.rimuru.framework.context.ApplicationContext;
import com.rimuru.framework.context.support.ClassPathXmlApplicationContext;
import com.rimuru.test.service.impl.UserService;

public class UserController {

    public static void main(String[] args) throws Exception {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");

        UserService userService = applicationContext.getBean("userService", UserService.class);
        userService.add();
    }
}
